package com.example.infowall02.service;

import com.example.infowall02.domain.User;
import org.springframework.stereotype.Service;

@Service

public interface UserService {
    //根据id查询用户
    public User findUserById(int id);
    //注册
    public int register(User user);
    //登录
    public User login(String username, String password);
    //修改昵称
    public User updateNickname(String nickname, int id);
    //修改头像
    public User updateUserImage(String userImage, int id);
    //修改密码
    public User updateUserPassword(String password,int id);
}
